//
//  Teacher.m
//  OC07_作业
//
//  Created by dllo on 15/12/9.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "Teacher.h"

@implementation Teacher

- (instancetype)initWithName:(NSString *)name
                         age:(NSInteger)age
                   classRoom:(NSString *)classRoom {
    self = [super initWithName:name age:age];
    if (self) {
        self.classRoom = [classRoom copy];
    }
    return self;
}

+ (instancetype)teacherWithName:(NSString *)name
                            age:(NSInteger)age
                      classRoom:(NSString *)classRoom {
    Teacher *tercher = [Teacher teacherWithName:name age:age classRoom:classRoom];
    return [tercher autorelease];
}


- (void)dealloc {
    [_classRoom release];
    [super dealloc];
}










@end
